package com.wg.wuge.tulin.jvm;

public class TestDynamicLoad {

    static {
        System.out.println("======= test dynamic load static ========");
    }

    public static void main(String[] args) {

        new A();
        System.out.println("main execute");
        new B();
    }
}
class A {
    static {
        System.out.println("======= static a ======");
    }
    A() {
        System.out.println("======= a init =======");
    }
}
class B {
    static {
        System.out.println("======= static b ======");
    }
    B() {
        System.out.println("======= b init =======");
    }
}